<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class totals{

	public function inquiry()
	{
		$CI =& get_instance();
		$CI->load->model('M_search');
		return $CI->M_search->count_inquiries(FALSE);
	}
	
	public function applicants()
	{
		$CI =& get_instance();
		$CI->load->model('M_search');
		return $CI->M_search->count_applicants(FALSE);
	}
	
	public function enrollees()
	{
		$CI =& get_instance();
		$CI->load->model('M_search');
		return $CI->M_search->count_approved_enrollees(FALSE);
	}
	
	public function registrar_approved()
	{
		$CI =& get_instance();
		$CI->load->model('M_search');
		return $CI->M_search->count_registrar_approved(FALSE);
	}
	
	public function approved_enrolled()
	{
		$CI =& get_instance();
		$CI->load->model('M_search');
		return $CI->M_search->count_approved_enrolled(FALSE);
	}
	
	public function balanced_enrolled()
	{
		$CI =& get_instance();
		$CI->load->model('M_search');
		return $CI->M_search->count_student_with_balance_2(FALSE);
	}
	
	public function new_messages()
	{
		$CI =& get_instance();
		$CI->load->model('M_message');
		return $CI->M_message->my_unread_message();
	}
}